<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
    <%
        String basePath = "http://" + request.getLocalAddr() + ":" + request.getLocalPort() + request.getContextPath();
    %>
    <title>${promptInfo.totalDescInfo}</title>
    <head>
    </head>
    <body onload="init();">
        <form name="actionForm" method="post" action="operateAction.action" id="actionForm">
            <script language="JavaScript" type="text/javascript">
                var jsonDescData =
                    {
                    headContent:'字典列表',
                    columns:
                        [{
                            name:'',desc:'序号',tcname:'',dataType:'',isshow:'0',primKey:'',isSerialNO:'1',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'5%',height:'22',isorder:'0',search:{iscol:'0',type:'',fname:''},alias:''
                        },
                        {
                            name:'checkall',desc:'',tcname:'',dataType:'',isshow:'1',primKey:'',isSerialNO:'0',checkbox:'1',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'5%',height:'22',isorder:'0',search:{iscol:'0',type:'',fname:''},alias:''
                        },
                        {
                            name:'tAlias',desc:'类别名称',tcname:'TALIAS',dataType:'String',isshow:'1',primKey:'0',isSerialNO:'0',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'20%',height:'22',isorder:'1',search:{iscol:'0',type:'input',fname:''},
                            alias:''
                        },
                        {
                            name:'alias',desc:'字典名称',tcname:'DICTIONARY_Alias',dataType:'String',isshow:'1',primKey:'0',isSerialNO:'0',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'20%',height:'22',isorder:'1',search:{iscol:'0',type:'input',fname:''},alias:''
                        },
                        {
                            name:'value',desc:'字典值',tcname:'DICTIONARY_Value',dataType:'String',isshow:'1',primKey:'0',isSerialNO:'0',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'15%',height:'22',isorder:'1',search:{iscol:'0',type:'input',fname:''},alias:''
                        },
                        {
                            name:'description',desc:'字典描述',tcname:'DICTIONARY_Description',dataType:'String',isshow:'1',primKey:'0',isSerialNO:'0',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'20%',height:'22',isorder:'1',search:{iscol:'0',type:'input',fname:''},alias:''
                        },
                        {
                            name:'',desc:'操作',tcname:'',dataType:'',isshow:'1',primKey:'0',isSerialNO:'0',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'1',width:'15%',height:'22',isorder:'0',search:{iscol:'0',type:'',fname:''},alias:''
                        },
                        {
                            name:'serialNO',desc:'主键ID',tcname:'DICTIONARY_SerialNO',dataType:'String',isshow:'0',primKey:'1',isSerialNO:'1',checkbox:'0',link:{funcName:'',url:''},
                            isShortcutMenu:'0',width:'5%',height:'22',isorder:'0',search:{iscol:'0',type:'input',fname:''},alias:''
                        }
                    ]
                };
                function init()
                {
                    gridTB.setFormName('actionForm');
                    gridTB.setRequestUrl('ajaxAction.action');
                    gridTB.setListElementObj(document.getElementById("paginationList"));
                    gridTB.setPagetbElementObj(document.getElementById("paginationTB"));
                    gridTB.setJsonDescData(jsonDescData);
                    gridTB.setColumnOrder('DICTIONARY_SerialNO desc');
                    gridTB.setCode('${code}');
                    gridTB.execute();
                }
            </script>
            <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" class="tablemain">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableT">
                            <tr>
                                <td class="tableTleft">&nbsp;</td>
                                <td class="tableTcenter">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="15%" valign="middle">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="5%">
                                                            <div align="center"><img src="<%=request.getContextPath()%>/images/default/tab/tb.gif" width="16" height="16"></div>
                                                        </td>
                                                        <td width="95%" class="tableTBig"><b>选择查询条件</b></td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="95%" align="right" id="optbtn">&nbsp;</td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableTright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableC">
                            <tr>
                                <td class="tableCleft">&nbsp;</td>
                                <td class="tableCcenter">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" class="SkyTDLine">
                                        <tr>
                                            <td class="SkyTDLine">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="SkyTableLine">
                                                    <tr align="center" class="MeNewTDLine" >
                                                        <tr>
                                                            <td align="right" class="SkyTDLine" width="10%">&nbsp;类别名称：</td>
                                                            <td align="left" class="SkyTDLine">&nbsp;
                                                                <select name="searchMap.type"   id="type" width="70%"   style="width:250;">
                                                                <option value=''>---请选择---</option>
                                                                <s:iterator value="initMap.dictionaryInfo" id="dictionaryList" status="sind">
                                                                    <option value='${dictionaryList.value}' >${dictionaryList.alias}</option>	
                                                                </s:iterator> 
                                                                </select>
                                                            </td>
                                                        <td align="center" rowspan="4" class="SkyTDLine" width="20%"><s:iterator value="subPms" id="spms" status="sind">
                                                            	<s:if test="#spms.menuType == 3">
                                                                    <img src="<%=request.getContextPath()%>/${spms.icon}" width="14" height="14">
                                                                    <a id="LnkBAdd" href="#" onclick="_${spms.jsFunc}('actionForm','${spms.code}','${spms.name}','${spms.width}','${spms.height}','',1);">${spms.name}</a>
                                                                </s:if>
                                                        	</s:iterator>
														</td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" class="SkyTDLine" width="10%">&nbsp;字&nbsp;典&nbsp;值：</td>
                                                            <td align="left" class="SkyTDLine" width="70%">&nbsp;
                                                                <input type="text" name="searchMap.value"  style="width:250;"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                             <td align="right" class="SkyTDLine" width="10%">&nbsp;字典名称：</td>
                                                            <td align="left" class="SkyTDLine" width="70%">&nbsp;
                                                                <input type="text" name="searchMap.alias"  style="width:250;"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" class="SkyTDLine" width="10%">&nbsp;字典描述：</td>
                                                            <td align="left" class="SkyTDLine" width="70%">&nbsp;
                                                                <input type="text" name="searchMap.description"  style="width:250;"/>
                                                            </td>
                                                        </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableCright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="WtableF">
                            <tr>
                                <td class="WtableFleft">&nbsp;</td>
                                <td align="right" class="WtableFcenter">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="tableNav">&nbsp;&nbsp;</td>
                                            <td>
                                                <table border="0" align="right" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td width="300" align="right"></td>
                                                        <td width="100">&nbsp;</td>
                                                        <td width="10">&nbsp;</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="WtableFright">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" class="tablemain">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableT">
                            <tr>
                                <td class="tableTleft">&nbsp;</td>
                                <td class="tableTcenter">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="15%" valign="middle">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="5%">
                                                            <div align="center"><img src="<%=request.getContextPath()%>/images/default/tab/tb.gif" width="16" height="16"></div>
                                                        </td>
                                                        <td width="95%" class="tableTBig"><b>${promptInfo.contentDescInfo}</b></td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="95%" align="right" id="optbtn">
                                                <table border="0" align="right" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td class="tableTBig">&nbsp; <s:iterator value="subPms" id="spms" status="sind">
                                                                <s:if test="#spms.menuType == 1 || #spms.menuType == 2">
                                                                    <img src="<%=request.getContextPath()%>/${spms.icon}" width="14" height="14">
                                                                    <a id="LnkBAdd" href="#" onclick="_${spms.jsFunc}('actionForm','${spms.code}','${spms.name}','${spms.width}','${spms.height}','',1);">${spms.name}</a>
                                                                </s:if>
                                                        </s:iterator></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableTright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableC">
                            <tr>
                                <td class="tableCleft">&nbsp;</td>
                                <td class="tableCcenter">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" class="SkyTDLine">
                                        <tr>
                                            <td valign="top" colspan="6" id="paginationList" class="MeNewTDLine"></td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableCright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="WtableF">
                            <tr>
                                <td class="WtableFleft">&nbsp;</td>
                                <td align="right" class="WtableFcenter">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="tableNav">&nbsp;&nbsp;</td>
                                            <td>
                                                <table border="0" align="right" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td width="300" align="right"></td>
                                                        <td width="100">
                                                            <div align="center"><span class="tablenormal" id="paginationTB"></span></div>
                                                        </td>
                                                        <td width="10">&nbsp;</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="WtableFright">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" class="tablemain">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableT">
                            <tr>
                                <td class="tableTleft">&nbsp;</td>
                                <td class="tableTcenter">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="46%" valign="middle">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="5%">
                                                            <div align="center"><img src="<%=request.getContextPath()%>/images/default/tab/tb.gif"></div>
                                                        </td>
                                                        <td width="95%" class="tableTBig">帮助说明</td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="54%">&nbsp;</td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableTright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableC">
                            <tr>
                                <td class="tableCleft">&nbsp;</td>
                                <td class="tableCcenter">
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableC">
                                        <tr>
                                            
                                            <td class="tableCcenter">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="SkyTDLine">
                                                    <tr>
                                                        <td class="SkyTDLine">${promptInfo.helpDescInfo}</td>
                                                    </tr>
                                                </table>
                                           </td>
                                            
                                        </tr>
                                    </table>
                                </td>
                                <td class="tableCright">&nbsp;</td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableF">
                            <tr>
                                <td class="tableFleft">&nbsp;</td>
                                <td class="tableFcenter">&nbsp;</td>
                                <td class="tableFright">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</HTML>
